//
//  File.swift
//
//
//  Created by didi on 2022/9/14.
//

import Molecular
import SwiftHtml
import Vapor

final class UserInvitationAdminTemplate: AbstractTemplate<UserInvitationContext> {
    override func render(_ req: Request) -> Tag {
        req.templateEngine.system.index(.init(title: context.title)) {
            Wrapper {
                Container {
                    LeadTemplate(.init(title: context.title, excerpt: context.message)).render(req)

                    FormTemplate(context.form).render(req)

                    LinkTemplate(context.link).render(req)
                }
            }
        }
        .render(req)
    }
}
